package com.example.common.neo4j.node;

import lombok.Data;
import org.springframework.data.neo4j.core.schema.Id;
import org.springframework.data.neo4j.core.schema.Node;
import org.springframework.data.neo4j.core.schema.Relationship;
import java.util.ArrayList;
import java.util.List;

@Data
@Node("User")
public class UserNode {

    @Id
    private Integer id;

    private String name;

    @Relationship(type = "INVITE", direction = Relationship.Direction.OUTGOING)
    private List<InviteShip> inviteShips = new ArrayList<>();
}

